package org.shijiagen.category.service;

import org.shijiagen.param.PageParam;
import org.shijiagen.param.ProductHotParam;
import org.shijiagen.pojo.Category;
import org.shijiagen.utils.R;

import java.util.List;

public interface CategoryService {
    Category byName(String categoryName);

    List<Integer> hotsCategory(ProductHotParam productHotParam);

    List<Category> list();

    R listPage(PageParam param);

    R save(Category category);

    R remove(Integer categoryId);

    R update(Category category);
}
